<?php
class ORMAssignee extends ORMBase {
  public function __construct() {
    parent::__construct('Assignee');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->userId = isset($object->userId) ? $object->userId : 0;
    $epObject->account = isset($object->account) ? $object->account : '';
    $epObject->email = isset($object->email) ? $object->email : '';
    $epObject->type = isset($object->type) ? $object->type : '';
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->userId = $epObject->userId;
    $object->account = $epObject->account;
    $object->email = $epObject->email;
    $object->type = $epObject->type;
    return $object;
  }
}
?>
